package com.iotteam.androidbase.commen.views.charts;

import android.graphics.Canvas;
import android.graphics.Paint;

/**
 * Created by vonchenchen on 15/08/2017.
 */

public abstract class AbsRenderer {

    protected void drawLine(Canvas canvas, Point startPoint, Point stopPoint, Paint paint){
        canvas.drawLine(startPoint.getFloatX(), startPoint.getFloatY(), stopPoint.getFloatX(), stopPoint.getFloatY(), paint);
    }

    abstract public void render(Canvas canvas);
}
